package com.example.mqltest.dao;


import com.example.mqltest.entity.DeleteStudent;
import com.example.mqltest.entity.Result;
import com.example.mqltest.entity.Student;
import com.example.mqltest.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface StudentDao  {
    Student Login(@Param( "userId" )String userId, @Param( "password" )String password);

    void register(@Param( "student" ) Student student);

    List<Student> getStudentByCode(@Param( "code" )String code);

    void exitCourse(@Param( "studentId" ) String studentId, @Param( "courseCode" ) String courseCode);

    void joinCourse(@Param( "studentId" ) String studentId, @Param( "courseCode" ) String courseCode);

    void archiveCourse(@Param( "code" ) String code,@Param( "studentId") String studentId,@Param( "archive" )String archive);

    void insertWork(@Param( "originalFileName" )String originalFileName,@Param( "workFilePath" )String workFilePath,@Param( "workId" )int workId,@Param( "studentId" )String studentId);

    void upLoadHead(@Param( "studentId" )String studentId,@Param( "avatarPath" )String avatarPath);

    Student getStudentById(@Param( "id" )String id);

    Student getStudentByPhoneNum(@Param( "phoneNum" )String phoneNum);

}
